package com.shop.cereshop.app.dao.dl;

import com.shop.cereshop.app.dl.logic.domian.CereBuyerUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CereBuyerUserDao {
    int deleteByPrimaryKey(Long buyerUserId);

    int insert(CereBuyerUser record);

    int insertSelective(CereBuyerUser record);

    CereBuyerUser selectByPrimaryKey(Long buyerUserId);

    int updateByPrimaryKeySelective(CereBuyerUser record);

    int updateByPrimaryKey(CereBuyerUser record);

    List<CereBuyerUser> getByWxOpenId(@Param("wechatOpenId") String wechatOpenId);

    CereBuyerUser getByWxOpenIdTwo(@Param("wechatOpenId") String wechatOpenId);
}